package com.eatme.web.common;

import java.io.Serializable;
import java.util.List;

public class QueryResult<T> implements Serializable {
    private long total;

    private List<T> list;

    public QueryResult() {

    }
    public QueryResult(long total, List<T> list) {
        this.total = total;
        this.list = list;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }
}
